#include "furniture.cpp"
using namespace iotek;

int main() {
  cout << sizeof(Weight) << endl;// 4；
  cout << sizeof(Sofa) << endl;// 8；
  cout << sizeof(Bed) << endl;// 8；
  cout << sizeof(Sofabed) << endl;// 12；

  Sofabed sb(111);
  sb.foldout();

  // 下面两行都会导致编译报错，因为混乱了。
  cout << sb.getWeight() << endl;
  sb.setWeight(123);
  cout << sb.getWeight() << endl;

  return 0;
}